package com.作业.第八章作业.HomeWork04;

public class Person {
    private String name;
    private double DailyWage;
    private int days;
    private double salary;

    public Person(String name, double dailyWage, int days) {
        this.name = name;
        DailyWage = dailyWage;
        this.days = days;
    }

    public String getName() {
        return name;
    }

    public double getDailyWage() {
        return DailyWage;
    }

    public int getDays() {
        return days;
    }

    public double getSalary() {
        return days * DailyWage;
    }

    public void show(){
        System.out.println("姓名：" + name + "，工资：" + getSalary());
    }
}
